package com.examination.system.administration.response;

import com.examination.framework.model.response.ResultCode;
import io.swagger.annotations.ApiModelProperty;

import javax.swing.*;

/**
 * @author 寇淇芮
 * @Date 2019/9/27 9:19
 */
public enum  EmployeeCode implements ResultCode {
    cellPhoneNumberIsEmpty(false,100001,"手机号为空"),
    nameCannotBeEmpty(false,100002,"名字不能为空"),
    MODIFYING_DATA_EXCEPTIONS(false,100003,"修改数据异常");
    @ApiModelProperty(value = "操作是否成功", example = "true", required = true)
    private Boolean success;
    @ApiModelProperty(value = "操作代码", example = "true", required = true)
    private int code;
    @ApiModelProperty(value = "操作信息", example = "true", required = true)
    private String message;
    private EmployeeCode(Boolean success,int code,String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }
    @Override
    public boolean success() {
        return success;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
